<?php
$titlePr = 'title'.$rear;
$aliasPr = 'alias'.$rear;
?>

<div class="module-01 wrap">
    <div class="module module-tintuc-khuyenmai">
    	<div class="box-title title-tt-km">
    		<h3><?php echo $this->lang->line('module_news') ?></h3>
    	</div><!-- end title-tt-km -->
    	<div class="box-content content-tt-km clearfix">
    		<ul>
                <?php 
                foreach($article as $ar){
                    $alias_cate = $this->common_model->getone('article_category',array('id'=>$ar->category));
                    echo '<li>
    				    <a title="'.$ar->$titlePr.'" href="'.base_url().$alias_cate->$aliasPr.'/'.$ar->$aliasPr.'.html ">'.$ar->$titlePr.'</a>
    			     </li>';
                }?>
    		</ul>
    	</div><!-- end content-tt-km -->		
    </div><!-- end module-tintuc-khuyenmai -->
    <div class="module module-bottom"></div><!-- end module-bottom-->
</div><!-- end module-01-->